#ifndef DIALOG_LIGHTCONTROL_H
#define DIALOG_LIGHTCONTROL_H

#include <QDialog>

namespace Ui {
class Dialog_LightControl;
}

class Dialog_LightControl : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog_LightControl(QWidget *parent = nullptr);
    ~Dialog_LightControl();


    static QString getSetLightsDataString(const QString &channel, const uint8_t channelVal);
signals:
    void sendTopRoSideLightAdjustData(QString dat);
    void sendBottomLightAdjustData(QString dat);
public slots:
    void getRecv(QString data);
    void do_btn_sendState_clicked();
private slots:
    void on_btn_sendData_clicked();

    void on_btn_readA_clicked();

    void on_btn_readB_clicked();

//    void on_btn_sendState_clicked();

    void on_btn_ok_clicked();

    void on_btn_exit_clicked();

private:
    Ui::Dialog_LightControl *ui;

    uint8_t topLightChannelA;
    uint8_t topLightChannelB;
    uint8_t sideLightChannelC;
    uint8_t sideLightChannelD;
    uint8_t BottomLightChannelA;
};

#endif // DIALOG_LIGHTCONTROL_H
